import json
from config import BASE_DIR


def read_json(filename):
    with open(filename, 'r', encoding='utf-8') as f:
        json_data = json.load(f)
        data_list = []
        for data in json_data:
            tep = tuple(data.values())
            data_list.append(tep)
        return data_list


# if __name__ == '__main__':
#     filename = BASE_DIR + '\data\ihrm_login_data.json'
#     res = read_json(filename)
#     print(res)
